package foodmaterial.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import foodmaterial.utils.Constants;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class OrdersRecipe implements Serializable {
    private static final long serialVersionUID = 5749027187487456697L;

    private Long id ;
    private Long ordersId ;
    private Long recipeTemplateId ;
    private String recipeTemplateName ;
    private Long recipeTypeId ;
    private String recipeTypeName ;
    private BigDecimal price ; //'销售价格',
    private BigDecimal total ;//总金额
    private Integer totalAmount ;
    private Integer totalWeight ;
    @JsonFormat(pattern= Constants.DEFAULT_DATE_FORMAT,timezone="GMT+8")
    private Date eatDate ;
    private Long mealsTypeId ;
    private String mealsTypeName ;
    @JsonFormat(pattern=Constants.DEFAULT_DATE_FORMAT,timezone="GMT+8")
    private Date supplyDate ;
    @JsonFormat(pattern=Constants.DEFAULT_DATE_FORMAT,timezone="GMT+8")
    private Date distributionDate ;
    private Long customerId ;
    private String customerName ;
    private Integer showOrder;
    private String orderType ;
    private String routerName ;

    private List<OrdersRecipeDetails> details;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOrdersId() {
        return ordersId;
    }

    public void setOrdersId(Long ordersId) {
        this.ordersId = ordersId;
    }

    public Long getRecipeTemplateId() {
        return recipeTemplateId;
    }

    public void setRecipeTemplateId(Long recipeTemplateId) {
        this.recipeTemplateId = recipeTemplateId;
    }

    public String getRecipeTemplateName() {
        return recipeTemplateName;
    }

    public void setRecipeTemplateName(String recipeTemplateName) {
        this.recipeTemplateName = recipeTemplateName;
    }

    public Long getRecipeTypeId() {
        return recipeTypeId;
    }

    public void setRecipeTypeId(Long recipeTypeId) {
        this.recipeTypeId = recipeTypeId;
    }

    public String getRecipeTypeName() {
        return recipeTypeName;
    }

    public void setRecipeTypeName(String recipeTypeName) {
        this.recipeTypeName = recipeTypeName;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getTotal() {
        return total;
    }

    public void setTotal(BigDecimal total) {
        this.total = total;
    }

    public Integer getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Integer totalAmount) {
        this.totalAmount = totalAmount;
    }

    public Integer getTotalWeight() {
        return totalWeight;
    }

    public void setTotalWeight(Integer totalWeight) {
        this.totalWeight = totalWeight;
    }

    public Date getEatDate() {
        return eatDate;
    }

    public void setEatDate(Date eatDate) {
        this.eatDate = eatDate;
    }

    public Long getMealsTypeId() {
        return mealsTypeId;
    }

    public void setMealsTypeId(Long mealsTypeId) {
        this.mealsTypeId = mealsTypeId;
    }

    public String getMealsTypeName() {
        return mealsTypeName;
    }

    public void setMealsTypeName(String mealsTypeName) {
        this.mealsTypeName = mealsTypeName;
    }

    public Date getSupplyDate() {
        return supplyDate;
    }

    public void setSupplyDate(Date supplyDate) {
        this.supplyDate = supplyDate;
    }

    public Date getDistributionDate() {
        return distributionDate;
    }

    public void setDistributionDate(Date distributionDate) {
        this.distributionDate = distributionDate;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public Integer getShowOrder() {
        return showOrder;
    }

    public void setShowOrder(Integer showOrder) {
        this.showOrder = showOrder;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getRouterName() {
        return routerName;
    }

    public void setRouterName(String routerName) {
        this.routerName = routerName;
    }

    public List<OrdersRecipeDetails> getDetails() {
        return details;
    }

    public void setDetails(List<OrdersRecipeDetails> details) {
        this.details = details;
    }
}
